/<template>
  <div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="item in list" :key="item.id">
        <img :src="item.img" alt="" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
import Mock from "mockjs";
const data = Mock.mock({
  "list|10": [
    {
      img: "@image(50x50,@color)",
      title: "@ctitle(2,4)",
      id: "@id",
    },
  ],
});
export default {
  data() {
    return {
      list: data.list,
    };
  },
};
</script>

<style>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  /* line-height: 150px; */
  text-align: center;
  /* background-color: #39a9ed; */
}
.my-swipe .van-swipe-item img{
    width: 100%;
    height: 200px;
}
</style>